home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / recent / iib122.lha / IIB / Threads / Genlock < prev    next >
Internet Message Format  |  1998-02-17  |  5KB

  1. Date:         Sat, 15 Nov 1997 13:26:51 -0500
  2. From: "Martin J. Conlon" <mconlon@ENGSOC.CARLETON.CA>
  3. Subject:      Re: [IML] Quest: Brushmap as decal
  4.  
  5. On Sat, 15 Nov 1997, Richard Gowland wrote:
  6.  
  7. > I've been wanting to add a brushmap of some text to an object without the
  8. > background overlaying the textures already on it. I've heard you can use a
  9. > genlock feature in the brushmap but I don't know how to create it! If anyone
  10. > knows how to do this with either paintshop pro or X-res I'll be eternally
  11. > grateful.
  12.  
  13. You just need to make the background of the text a solid colour than
  14. doesn't appear in the rest of the decal.  Choose a colour close to your
  15. object colour so the anti-aliased edges of the decal blend in.
  16.  
  17. Then apply the brushmap to your object and check the "use genlock" box on
  18. the notebook page.
  19.  
  20. When you hit "render" and the dialog pops up, go to the last page and set
  21. the genlock colour to whatever you chose.  (It's the coloured box in the
  22. bottom corner.)
  23.  
  24. Note:  If you've got IFW 1.3.4, you've got IFF support....  IFF's can
  25. store a genolck colour, but I don't know if either of your paint programs
  26. will write them.
  27.  
  28. ---------------------------------
  29.  
  30. Date:         Tue, 16 Dec 1997 11:06:52 +0100
  31. From: Torgeir Holm <torgeir@GIL.NO>
  32. Subject:      [IML] IFW: AADecal (was: Amiga: Transparent Brushmaps)
  33.  
  34. At 01:18 16/12/97 -0700, you wrote:
  35. >Thanks to all the great replies.  It was very simple and easily overlooked.
  36. >Add the brush to the object and select  USE GENLOCK.  This sets color 0
  37. >(0,0,0) to transparent.
  38.  
  39. Actually, when using index colored images color 0 can be any color. It's
  40. just the first color in the palette.
  41.  
  42. One problem with the genlocking is that imagine interpolates the pixels in
  43. the brushmap past the clipping. For example, if you have map with a red
  44. circle on a black background, and you genlock this onto a white object, the
  45. red circle will have a dark "halo" because it the red pixels are
  46. interpolated towards black.
  47.  
  48. This is why I now use Mark Willis' AAdecal IFW texture for all this. It
  49. lets you use Targa files with alpha channels, instead of the less than
  50. perfect genlock clipping.
  51.  
  52. Check out the texture at the site below, they're well worth registering!!
  53.  
  54. http://www.mindspring.com/~maw01/aatxt/index.htm
  55.  
  56. ---------------------------------
  57.  
  58. Date:         Wed, 24 Sep 1997 22:05:09 +0400
  59. From: Charles Blaquière <blaq@INTERLOG.COM>
  60. Subject:      Re: [IML] IFW: Genlock & Alpha Channel Problems
  61.  
  62. Roy Baker wrote:
  63. >
  64. > The problem is that the text has a black "outline" around it when I render
  65. > the object. I’m placing light colored text onto a light colored surface. The
  66. > black outline is not acceptable for my work. I’ve tried creating the text in
  67. > several paint programs (being sure that "anti-aliasing" is turned off – the
  68. > text has jaggies and no blurring around the edges).
  69.  
  70. Roy,
  71.  
  72. first of all, welcome! I don't recall if the IML "welcome" message
  73. mentions this, but you can search an archive of all past IML messages at
  74.  
  75.         http://MAELSTROM.STJOHNS.EDU/CGI/wa.exe?S1=imagine
  76.  
  77. It's a great way to answer many questions, if you're worried about
  78. posting a FAQ. Another great resource is Conny Joennsen Digestive IML, a
  79. compendium of selected messages -- kind of a "IML greatest hits". The
  80. URL:
  81.  
  82.         http://MAELSTROM.STJOHNS.EDU/CGI/wa.exe?S1=imagine
  83.  
  84. Now, on to the topic at hand. Imagine's Genlock feature is strictly
  85. on/off; on the other hand, Imagine anti-aliases all brushmaps. As a
  86. result, the background bleeds into the bottom and left border pixels in
  87. your text. (On the top and right sides, the Genlock kicks in _before_
  88. anti-aliasing gets a chance to begin, so you don't see the border
  89. effect) Having this outline appear on two adjoining sides does make it
  90. look like a drop shadow; good observation.
  91.  
  92. The only way to avoid this is to bypass the Genlock feature entirely.
  93. Instead, duplicate the object surface you're applying the brushmap to,
  94. and move it off the object by a fraction of an Imagine unit. Then, make
  95. a greyscale version of your text, in black over a white background, and
  96. apply this to the floating surface, as a filter map. Imagine's Filter
  97. attributes works like this: 0 = opaque, 255 = fully transparent. You can
  98. see how your text will be opaque, while outside the text, the floating
  99. surface will disappear.
  100.  
  101. You can now color the text by applying attributes and/or color
  102. textures/brushmaps to the floating object. As a pleasant side effect,
  103. you now have 256 levels of transparency, rather than the simple on/off
  104. used by Genlock. This allows for transparency gradients or, better yet,
  105. fully anti-aliased edges on your text! You can happily reactivate
  106. anti-aliasing  in your paint program.
  107.  
  108.  
  109. A better way would be for Imagine to support 32-bit images with an
  110. embedded alpha channel (this would remove the need to use a separate
  111. floating object -- you could apply the 32-bit brushmap directly to the
  112. original object), but for now this is the best you can do. By the way,
  113. when Impulse mentioned "alpha channel support", I seem to recall they
  114. meant as an output feature, to allow post-processing programs to
  115. differentiate between objects and background in a finished Imagine
  116. render. Supporting alpha channels in brushmaps may also have been talked
  117. about, but I don't recall that.
  118.